define([
    'H',
    'angular', 'angularMaterial', 'uiRouter', 'angularAria', 'angularAnimate', 'angularIcons',
    'routingmap', 'controllers', 'services'
], function (H,
             angular, material, uiRouter, angularAria, angularAnimate, ngMdIcons,
             routingmap, controllers, services) {

    // ReqAsync.setXhrWorkerUrl('./lib/workers/xhr.js');

    window.angular = angular;

    return angular
        .module('modelEditor', [
            'ui.router',
            'ngMaterial',
            'ngAnimate',
            'map3d.controllers',
            'map3d.services',
        ], ['$httpProvider', function ($httpProvider) {
        }])
        /*
         * NOTE: unnamed injections (not specified in form [name, name, ..., function])
         * ALWAYS FAIL under uglify
         */
        // .config(routingmap)
        .config(['$locationProvider', function ($locationProvider) {
            $locationProvider.html5Mode(false);
        }])
        ;
});